﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DragonSolution.Web.UI.DAL
{
    /// <summary>
    /// 是否需要验证登陆,可应用于Controller和Action
    /// </summary>
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = false, AllowMultiple = false)]
    public class CheckLoginAttribute : Attribute
    {
        public bool _isNeedLogin = false;

        /// <summary>
        /// 构造方法
        /// </summary>
        /// <param name="IsNeedLogin">是否需要验证</param>
        public CheckLoginAttribute(bool IsNeedLogin)
        {
            this._isNeedLogin = IsNeedLogin;
        }
    }
}